# Makefile for the D runtime library.
# Copyright (C) 2012-2018 Free Software Foundation, Inc.
#
# GCC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# <http://www.gnu.org/licenses/>.

# Include D build rules
include $(top_srcdir)/d_rules.am

# Make sure GDC can find libdruntime include files
D_EXTRA_DFLAGS=-nostdinc -I $(srcdir) -I .

# D flags for compilation
AM_DFLAGS=$(phobos_compiler_pic_flag)

# Install all D and DI files
ALL_DRUNTIME_INSTALL_DSOURCES = $(DRUNTIME_DSOURCES) \
	$(DRUNTIME_DSOURCES_GC) $(DRUNTIME_DSOURCES_GCSTUB) \
	$(DRUNTIME_DSOURCES_BIONIC) $(DRUNTIME_DSOURCES_DARWIN) \
	$(DRUNTIME_DSOURCES_DRAGONFLYBSD) $(DRUNTIME_DSOURCES_FREEBSD) \
	$(DRUNTIME_DSOURCES_LINUX) $(DRUNTIME_DSOURCES_OPENBSD) \
	$(DRUNTIME_DSOURCES_OSX) $(DRUNTIME_DSOURCES_POSIX) \
	$(DRUNTIME_DSOURCES_SOLARIS) $(DRUNTIME_DSOURCES_WINDOWS) \
	$(DRUNTIME_DSOURCES_GENERATED) $(DRUNTIME_DSOURCES_STDCXX) \
	$(DRUNTIME_DISOURCES)

# Setup source files depending on configure
ALL_DRUNTIME_COMPILE_DSOURCES = $(DRUNTIME_DSOURCES)
# GC sources
if DRUNTIME_GC_ENABLE
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_GC)
else
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_GCSTUB)
endif
# OS specific sources
if DRUNTIME_OS_UNIX
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_POSIX)
endif
if DRUNTIME_OS_DARWIN
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_DARWIN) \
				     $(DRUNTIME_DSOURCES_OSX)
endif
if DRUNTIME_OS_ANDROID
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_BIONIC)
endif
if DRUNTIME_OS_FREEBSD
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_FREEBSD)
endif
if DRUNTIME_OS_OPENBSD
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_OPENBSD)
endif
if DRUNTIME_OS_LINUX
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_LINUX)
endif
if DRUNTIME_OS_MINGW
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_WINDOWS)
endif
if DRUNTIME_OS_SOLARIS
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_SOLARIS)
endif
if DRUNTIME_OS_DRAGONFLYBSD
    ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_DRAGONFLYBSD)
endif
# Generated by configure
ALL_DRUNTIME_COMPILE_DSOURCES += $(DRUNTIME_DSOURCES_GENERATED)

ALL_DRUNTIME_SOURCES = $(ALL_DRUNTIME_COMPILE_DSOURCES) $(DRUNTIME_CSOURCES) \
	$(DRUNTIME_SSOURCES)
REAL_DRUNTIME_TEST_LOBJECTS = $(ALL_DRUNTIME_COMPILE_DSOURCES:.d=.t.lo)
REAL_DRUNTIME_TEST_OBJECTS  = $(ALL_DRUNTIME_COMPILE_DSOURCES:.d=.t.o)
# Workaround issue #
DRUNTIME_TEST_OBJECTS  = $(filter-out rt/util/typeinfo.t.o \
	core/internal/convert.t.o, $(REAL_DRUNTIME_TEST_OBJECTS)) \
	rt/util/typeinfo.o core/internal/convert.o

DRUNTIME_TEST_LOBJECTS  = $(filter-out rt/util/typeinfo.t.lo \
	core/internal/convert.t.lo, $(REAL_DRUNTIME_TEST_LOBJECTS)) \
	rt/util/typeinfo.lo core/internal/convert.lo


# Main library build definitions
check_PROGRAMS =
if ENABLE_SHARED
  check_LTLIBRARIES = libgdruntime_t.la
  check_PROGRAMS += unittest
endif
if ENABLE_STATIC
  check_PROGRAMS += unittest_static
endif

toolexeclib_LTLIBRARIES = libgdruntime.la
libgdruntime_la_SOURCES = $(ALL_DRUNTIME_SOURCES)
libgdruntime_la_LIBTOOLFLAGS =
libgdruntime_la_LDFLAGS = -Xcompiler -nophoboslib -version-info $(DRUNTIME_SOVERSION)
libgdruntime_la_LIBADD = $(LIBATOMIC) $(LIBBACKTRACE)

# For static unittest, link objects directly
unittest_static_SOURCES = ../testsuite/test_runner.d $(DRUNTIME_CSOURCES) \
    $(DRUNTIME_SSOURCES)
unittest_static_LIBTOOLFLAGS =
unittest_static_LDFLAGS = -Xcompiler -nophoboslib
unittest_static_LDADD = $(DRUNTIME_TEST_OBJECTS) $(LIBATOMIC) $(LIBBACKTRACE)
EXTRA_unittest_static_DEPENDENCIES = $(DRUNTIME_TEST_OBJECTS)

# For unittest with dynamic library
libgdruntime_t_la_SOURCES = $(DRUNTIME_CSOURCES) $(DRUNTIME_SSOURCES)
libgdruntime_t_la_LIBTOOLFLAGS =
# Automake by default does not generate shared libs for non-installed
# libraries. Use -rpath to force shared lib generation.
libgdruntime_t_la_LDFLAGS = -Xcompiler -nophoboslib -rpath /foo -shared
libgdruntime_t_la_LIBADD = $(DRUNTIME_TEST_LOBJECTS) $(LIBATOMIC) $(LIBBACKTRACE)
EXTRA_libgdruntime_t_la_DEPENDENCIES = $(DRUNTIME_TEST_LOBJECTS)

# For unittest
unittest_SOURCES = ../testsuite/test_runner.d
unittest_LIBTOOLFLAGS =
unittest_LDFLAGS = -Xcompiler -nophoboslib
unittest_LDADD = libgdruntime_t.la

# Extra install and clean rules.
# This does not delete the .libs/.t.o files, but deleting
# the .lo is good enough to rerun the rules
clean-local:
	rm -f $(DRUNTIME_TEST_LOBJECTS)
	rm -f $(DRUNTIME_TEST_OBJECTS)

# Handles generated files as well
install-data-local:
	for file in $(ALL_DRUNTIME_INSTALL_DSOURCES); do \
	  if test -f $$file; then \
	    $(INSTALL_HEADER) -D $$file $(DESTDIR)$(gdc_include_dir)/$$file ; \
	  else \
	    $(INSTALL_HEADER) -D $(srcdir)/$$file \
	      $(DESTDIR)$(gdc_include_dir)/$$file ; \
	  fi ; \
	done


DRUNTIME_DSOURCES_GENERATED = gcc/config.d gcc/libbacktrace.d
# Source file definitions. Boring stuff, auto-generated with
# https://gist.github.com/jpf91/8ad1dbc9902d6ad876313f134c6527d1
# Can't use wildcards here:
# https://www.gnu.org/software/automake/manual/html_node/Wildcards.html
DRUNTIME_SSOURCES = core/threadasm.S

DRUNTIME_CSOURCES = core/stdc/errno_.c

DRUNTIME_DSOURCES = core/atomic.d core/attribute.d core/bitop.d \
	core/checkedint.d core/cpuid.d core/demangle.d core/exception.d \
	core/internal/abort.d core/internal/arrayop.d core/internal/convert.d \
	core/internal/hash.d core/internal/parseoptions.d \
	core/internal/spinlock.d core/internal/string.d core/internal/traits.d \
	core/math.d core/memory.d core/runtime.d core/simd.d \
	core/stdc/assert_.d core/stdc/complex.d core/stdc/config.d \
	core/stdc/ctype.d core/stdc/errno.d core/stdc/fenv.d \
	core/stdc/float_.d core/stdc/inttypes.d core/stdc/limits.d \
	core/stdc/locale.d core/stdc/math.d core/stdc/signal.d \
	core/stdc/stdarg.d core/stdc/stddef.d core/stdc/stdint.d \
	core/stdc/stdio.d core/stdc/stdlib.d core/stdc/string.d \
	core/stdc/tgmath.d core/stdc/time.d core/stdc/wchar_.d \
	core/stdc/wctype.d core/sync/barrier.d core/sync/condition.d \
	core/sync/config.d core/sync/exception.d core/sync/mutex.d \
	core/sync/rwmutex.d core/sync/semaphore.d core/thread.d core/time.d \
	core/vararg.d gcc/attribute.d gcc/backtrace.d gcc/builtins.d gcc/deh.d \
	gcc/unwind/arm.d gcc/unwind/arm_common.d gcc/unwind/c6x.d \
	gcc/unwind/generic.d gcc/unwind/package.d gcc/unwind/pe.d object.d \
	rt/aApply.d rt/aApplyR.d rt/aaA.d rt/adi.d rt/arrayassign.d \
	rt/arraycast.d rt/arraycat.d rt/cast_.d rt/config.d rt/critical_.d \
	rt/deh.d rt/dmain2.d rt/ehalloc.d rt/invariant.d rt/lifetime.d \
	rt/memory.d rt/minfo.d rt/monitor_.d rt/obj.d rt/qsort.d rt/sections.d \
	rt/sections_android.d rt/sections_elf_shared.d rt/sections_osx_x86.d \
	rt/sections_osx_x86_64.d rt/sections_solaris.d rt/sections_win32.d \
	rt/sections_win64.d rt/tlsgc.d rt/typeinfo/ti_Acdouble.d \
	rt/typeinfo/ti_Acfloat.d rt/typeinfo/ti_Acreal.d \
	rt/typeinfo/ti_Adouble.d rt/typeinfo/ti_Afloat.d rt/typeinfo/ti_Ag.d \
	rt/typeinfo/ti_Aint.d rt/typeinfo/ti_Along.d rt/typeinfo/ti_Areal.d \
	rt/typeinfo/ti_Ashort.d rt/typeinfo/ti_C.d rt/typeinfo/ti_byte.d \
	rt/typeinfo/ti_cdouble.d rt/typeinfo/ti_cent.d rt/typeinfo/ti_cfloat.d \
	rt/typeinfo/ti_char.d rt/typeinfo/ti_creal.d rt/typeinfo/ti_dchar.d \
	rt/typeinfo/ti_delegate.d rt/typeinfo/ti_double.d \
	rt/typeinfo/ti_float.d rt/typeinfo/ti_idouble.d \
	rt/typeinfo/ti_ifloat.d rt/typeinfo/ti_int.d rt/typeinfo/ti_ireal.d \
	rt/typeinfo/ti_long.d rt/typeinfo/ti_n.d rt/typeinfo/ti_ptr.d \
	rt/typeinfo/ti_real.d rt/typeinfo/ti_short.d rt/typeinfo/ti_ubyte.d \
	rt/typeinfo/ti_ucent.d rt/typeinfo/ti_uint.d rt/typeinfo/ti_ulong.d \
	rt/typeinfo/ti_ushort.d rt/typeinfo/ti_void.d rt/typeinfo/ti_wchar.d \
	rt/util/array.d rt/util/container/array.d rt/util/container/common.d \
	rt/util/container/hashtab.d rt/util/container/treap.d rt/util/random.d \
	rt/util/typeinfo.d rt/util/utf.d

DRUNTIME_DSOURCES_STDCXX = core/stdcpp/exception.d \
	core/stdcpp/typeinfo.d

DRUNTIME_DSOURCES_GC = gc/bits.d gc/config.d gc/gcinterface.d \
	gc/impl/conservative/gc.d gc/impl/manual/gc.d gc/impl/proto/gc.d \
	gc/os.d gc/pooltable.d gc/proxy.d

DRUNTIME_DSOURCES_BIONIC = core/sys/bionic/fcntl.d \
	core/sys/bionic/unistd.d

DRUNTIME_DSOURCES_DARWIN = core/sys/darwin/dlfcn.d \
	core/sys/darwin/execinfo.d core/sys/darwin/mach/dyld.d \
	core/sys/darwin/mach/getsect.d core/sys/darwin/mach/kern_return.d \
	core/sys/darwin/mach/loader.d core/sys/darwin/mach/port.d \
	core/sys/darwin/mach/semaphore.d core/sys/darwin/mach/thread_act.d \
	core/sys/darwin/netinet/in_.d core/sys/darwin/pthread.d \
	core/sys/darwin/sys/cdefs.d core/sys/darwin/sys/event.d \
	core/sys/darwin/sys/mman.d

DRUNTIME_DSOURCES_DRAGONFLYBSD = core/sys/dragonflybsd/dlfcn.d \
	core/sys/dragonflybsd/execinfo.d core/sys/dragonflybsd/netinet/in_.d \
	core/sys/dragonflybsd/pthread_np.d core/sys/dragonflybsd/sys/_bitset.d \
	core/sys/dragonflybsd/sys/_cpuset.d core/sys/dragonflybsd/sys/cdefs.d \
	core/sys/dragonflybsd/sys/elf.d core/sys/dragonflybsd/sys/elf32.d \
	core/sys/dragonflybsd/sys/elf64.d \
	core/sys/dragonflybsd/sys/elf_common.d \
	core/sys/dragonflybsd/sys/event.d core/sys/dragonflybsd/sys/link_elf.d \
	core/sys/dragonflybsd/sys/mman.d core/sys/dragonflybsd/time.d

DRUNTIME_DSOURCES_FREEBSD = core/sys/freebsd/dlfcn.d \
	core/sys/freebsd/execinfo.d core/sys/freebsd/netinet/in_.d \
	core/sys/freebsd/pthread_np.d core/sys/freebsd/sys/_bitset.d \
	core/sys/freebsd/sys/_cpuset.d core/sys/freebsd/sys/cdefs.d \
	core/sys/freebsd/sys/elf.d core/sys/freebsd/sys/elf32.d \
	core/sys/freebsd/sys/elf64.d core/sys/freebsd/sys/elf_common.d \
	core/sys/freebsd/sys/event.d core/sys/freebsd/sys/link_elf.d \
	core/sys/freebsd/sys/mman.d core/sys/freebsd/sys/mount.d \
	core/sys/freebsd/time.d core/sys/freebsd/unistd.d

DRUNTIME_DSOURCES_LINUX = core/sys/linux/config.d \
	core/sys/linux/dlfcn.d core/sys/linux/elf.d core/sys/linux/epoll.d \
	core/sys/linux/errno.d core/sys/linux/execinfo.d \
	core/sys/linux/fcntl.d core/sys/linux/ifaddrs.d core/sys/linux/link.d \
	core/sys/linux/netinet/in_.d core/sys/linux/netinet/tcp.d \
	core/sys/linux/sched.d core/sys/linux/stdio.d \
	core/sys/linux/sys/auxv.d core/sys/linux/sys/eventfd.d \
	core/sys/linux/sys/file.d core/sys/linux/sys/inotify.d \
	core/sys/linux/sys/mman.d core/sys/linux/sys/netinet/tcp.d \
	core/sys/linux/sys/prctl.d core/sys/linux/sys/signalfd.d \
	core/sys/linux/sys/socket.d core/sys/linux/sys/sysinfo.d \
	core/sys/linux/sys/time.d core/sys/linux/sys/xattr.d \
	core/sys/linux/termios.d core/sys/linux/time.d \
	core/sys/linux/timerfd.d core/sys/linux/tipc.d core/sys/linux/unistd.d

DRUNTIME_DSOURCES_NETBSD = core/sys/netbsd/dlfcn.d \
	core/sys/netbsd/execinfo.d core/sys/netbsd/sys/elf.d \
	core/sys/netbsd/sys/elf32.d core/sys/netbsd/sys/elf64.d \
	core/sys/netbsd/sys/elf_common.d core/sys/netbsd/sys/event.d \
	core/sys/netbsd/sys/link_elf.d core/sys/netbsd/sys/mman.d \
	core/sys/netbsd/time.d

DRUNTIME_DSOURCES_OPENBSD = core/sys/openbsd/dlfcn.d

DRUNTIME_DSOURCES_OSX = core/sys/osx/execinfo.d \
	core/sys/osx/mach/dyld.d core/sys/osx/mach/getsect.d \
	core/sys/osx/mach/kern_return.d core/sys/osx/mach/loader.d \
	core/sys/osx/mach/port.d core/sys/osx/mach/semaphore.d \
	core/sys/osx/mach/thread_act.d core/sys/osx/pthread.d \
	core/sys/osx/sys/cdefs.d core/sys/osx/sys/event.d \
	core/sys/osx/sys/mman.d

DRUNTIME_DSOURCES_POSIX = core/sys/posix/aio.d \
	core/sys/posix/arpa/inet.d core/sys/posix/config.d \
	core/sys/posix/dirent.d core/sys/posix/dlfcn.d core/sys/posix/fcntl.d \
	core/sys/posix/grp.d core/sys/posix/iconv.d core/sys/posix/inttypes.d \
	core/sys/posix/libgen.d core/sys/posix/mqueue.d \
	core/sys/posix/net/if_.d core/sys/posix/netdb.d \
	core/sys/posix/netinet/in_.d core/sys/posix/netinet/tcp.d \
	core/sys/posix/poll.d core/sys/posix/pthread.d core/sys/posix/pwd.d \
	core/sys/posix/sched.d core/sys/posix/semaphore.d \
	core/sys/posix/setjmp.d core/sys/posix/signal.d core/sys/posix/spawn.d \
	core/sys/posix/stdio.d core/sys/posix/stdlib.d \
	core/sys/posix/sys/filio.d core/sys/posix/sys/ioccom.d \
	core/sys/posix/sys/ioctl.d core/sys/posix/sys/ipc.d \
	core/sys/posix/sys/mman.d core/sys/posix/sys/msg.d \
	core/sys/posix/sys/resource.d core/sys/posix/sys/select.d \
	core/sys/posix/sys/shm.d core/sys/posix/sys/socket.d \
	core/sys/posix/sys/stat.d core/sys/posix/sys/statvfs.d \
	core/sys/posix/sys/time.d core/sys/posix/sys/ttycom.d \
	core/sys/posix/sys/types.d core/sys/posix/sys/uio.d \
	core/sys/posix/sys/un.d core/sys/posix/sys/utsname.d \
	core/sys/posix/sys/wait.d core/sys/posix/syslog.d \
	core/sys/posix/termios.d core/sys/posix/time.d \
	core/sys/posix/ucontext.d core/sys/posix/unistd.d \
	core/sys/posix/utime.d

DRUNTIME_DSOURCES_SOLARIS = core/sys/solaris/dlfcn.d \
	core/sys/solaris/elf.d core/sys/solaris/execinfo.d \
	core/sys/solaris/libelf.d core/sys/solaris/link.d \
	core/sys/solaris/sys/elf.d core/sys/solaris/sys/elf_386.d \
	core/sys/solaris/sys/elf_SPARC.d core/sys/solaris/sys/elf_amd64.d \
	core/sys/solaris/sys/elf_notes.d core/sys/solaris/sys/elftypes.d \
	core/sys/solaris/sys/link.d core/sys/solaris/sys/priocntl.d \
	core/sys/solaris/sys/procset.d core/sys/solaris/sys/types.d \
	core/sys/solaris/time.d

DRUNTIME_DSOURCES_WINDOWS = core/sys/windows/accctrl.d \
	core/sys/windows/aclapi.d core/sys/windows/aclui.d \
	core/sys/windows/basetsd.d core/sys/windows/basetyps.d \
	core/sys/windows/cderr.d core/sys/windows/cguid.d \
	core/sys/windows/com.d core/sys/windows/comcat.d \
	core/sys/windows/commctrl.d core/sys/windows/commdlg.d \
	core/sys/windows/core.d core/sys/windows/cpl.d \
	core/sys/windows/cplext.d core/sys/windows/custcntl.d \
	core/sys/windows/dbghelp.d core/sys/windows/dbghelp_types.d \
	core/sys/windows/dbt.d core/sys/windows/dde.d core/sys/windows/ddeml.d \
	core/sys/windows/dhcpcsdk.d core/sys/windows/dlgs.d \
	core/sys/windows/dll.d core/sys/windows/docobj.d \
	core/sys/windows/errorrep.d core/sys/windows/exdisp.d \
	core/sys/windows/exdispid.d core/sys/windows/httpext.d \
	core/sys/windows/idispids.d core/sys/windows/imagehlp.d \
	core/sys/windows/imm.d core/sys/windows/intshcut.d \
	core/sys/windows/ipexport.d core/sys/windows/iphlpapi.d \
	core/sys/windows/ipifcons.d core/sys/windows/iprtrmib.d \
	core/sys/windows/iptypes.d core/sys/windows/isguids.d \
	core/sys/windows/lm.d core/sys/windows/lmaccess.d \
	core/sys/windows/lmalert.d core/sys/windows/lmapibuf.d \
	core/sys/windows/lmat.d core/sys/windows/lmaudit.d \
	core/sys/windows/lmbrowsr.d core/sys/windows/lmchdev.d \
	core/sys/windows/lmconfig.d core/sys/windows/lmcons.d \
	core/sys/windows/lmerr.d core/sys/windows/lmerrlog.d \
	core/sys/windows/lmmsg.d core/sys/windows/lmremutl.d \
	core/sys/windows/lmrepl.d core/sys/windows/lmserver.d \
	core/sys/windows/lmshare.d core/sys/windows/lmsname.d \
	core/sys/windows/lmstats.d core/sys/windows/lmsvc.d \
	core/sys/windows/lmuse.d core/sys/windows/lmuseflg.d \
	core/sys/windows/lmwksta.d core/sys/windows/lzexpand.d \
	core/sys/windows/mapi.d core/sys/windows/mciavi.d \
	core/sys/windows/mcx.d core/sys/windows/mgmtapi.d \
	core/sys/windows/mmsystem.d core/sys/windows/msacm.d \
	core/sys/windows/mshtml.d core/sys/windows/mswsock.d \
	core/sys/windows/nb30.d core/sys/windows/nddeapi.d \
	core/sys/windows/nspapi.d core/sys/windows/ntdef.d \
	core/sys/windows/ntdll.d core/sys/windows/ntldap.d \
	core/sys/windows/ntsecapi.d core/sys/windows/ntsecpkg.d \
	core/sys/windows/oaidl.d core/sys/windows/objbase.d \
	core/sys/windows/objfwd.d core/sys/windows/objidl.d \
	core/sys/windows/objsafe.d core/sys/windows/ocidl.d \
	core/sys/windows/odbcinst.d core/sys/windows/ole.d \
	core/sys/windows/ole2.d core/sys/windows/ole2ver.d \
	core/sys/windows/oleacc.d core/sys/windows/oleauto.d \
	core/sys/windows/olectl.d core/sys/windows/olectlid.d \
	core/sys/windows/oledlg.d core/sys/windows/oleidl.d \
	core/sys/windows/pbt.d core/sys/windows/powrprof.d \
	core/sys/windows/prsht.d core/sys/windows/psapi.d \
	core/sys/windows/rapi.d core/sys/windows/ras.d \
	core/sys/windows/rasdlg.d core/sys/windows/raserror.d \
	core/sys/windows/rassapi.d core/sys/windows/reason.d \
	core/sys/windows/regstr.d core/sys/windows/richedit.d \
	core/sys/windows/richole.d core/sys/windows/rpc.d \
	core/sys/windows/rpcdce.d core/sys/windows/rpcdce2.d \
	core/sys/windows/rpcdcep.d core/sys/windows/rpcndr.d \
	core/sys/windows/rpcnsi.d core/sys/windows/rpcnsip.d \
	core/sys/windows/rpcnterr.d core/sys/windows/schannel.d \
	core/sys/windows/secext.d core/sys/windows/security.d \
	core/sys/windows/servprov.d core/sys/windows/setupapi.d \
	core/sys/windows/shellapi.d core/sys/windows/shldisp.d \
	core/sys/windows/shlguid.d core/sys/windows/shlobj.d \
	core/sys/windows/shlwapi.d core/sys/windows/snmp.d \
	core/sys/windows/sql.d core/sys/windows/sqlext.d \
	core/sys/windows/sqltypes.d core/sys/windows/sqlucode.d \
	core/sys/windows/sspi.d core/sys/windows/stacktrace.d \
	core/sys/windows/stat.d core/sys/windows/subauth.d \
	core/sys/windows/threadaux.d core/sys/windows/tlhelp32.d \
	core/sys/windows/tmschema.d core/sys/windows/unknwn.d \
	core/sys/windows/uuid.d core/sys/windows/vfw.d \
	core/sys/windows/w32api.d core/sys/windows/winbase.d \
	core/sys/windows/winber.d core/sys/windows/wincon.d \
	core/sys/windows/wincrypt.d core/sys/windows/windef.d \
	core/sys/windows/windows.d core/sys/windows/winerror.d \
	core/sys/windows/wingdi.d core/sys/windows/winhttp.d \
	core/sys/windows/wininet.d core/sys/windows/winioctl.d \
	core/sys/windows/winldap.d core/sys/windows/winnetwk.d \
	core/sys/windows/winnls.d core/sys/windows/winnt.d \
	core/sys/windows/winperf.d core/sys/windows/winreg.d \
	core/sys/windows/winsock2.d core/sys/windows/winspool.d \
	core/sys/windows/winsvc.d core/sys/windows/winuser.d \
	core/sys/windows/winver.d core/sys/windows/wtsapi32.d \
	core/sys/windows/wtypes.d

DRUNTIME_DISOURCES = __entrypoint.di __main.di
